package com.jtlrm.ckd.mvp.view.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

import com.jtlrm.ckd.R;
import com.jtlrm.ckd.base.acitvity.BaseActivity;
import com.jtlrm.ckd.entity.event.ShenHeRemarkMessage;
import com.jtlrm.ckd.util.EventBusUtil;

import butterknife.BindView;

public class ShenHeFalseActivity extends BaseActivity {

    @BindView(R.id.content)
    EditText contentE;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void setContentLayout() {
        setContentView(R.layout.activity_shen_he_false);
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void obtainData() {

    }

    @Override
    protected void initEvent() {

    }

    public void reShenHe(View view) {
        finish();
    }

    public void wanCheng(View view) {
        if (notEmpty("" + contentE.getText())) {
            ShenHeRemarkMessage message = new ShenHeRemarkMessage();
            message.setRemark(contentE.getText() + "");
            EventBusUtil.postEvent(message);
            finish();
        } else {
            showToast("请填写原因");
        }

    }

}
